<template>
  <!-- 添加路由视图容器 -->
  <div class="app-container">
    <router-view v-slot="{ Component }">
      <keep-alive>
        <component :is="Component" />
      </keep-alive>
    </router-view>
  </div>
</template>

<script>
export default {
  name: 'App'
}
</script>

<style>
/* 添加全局样式 */
.app-container {
  max-width: 414px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
}
</style>